package com.ge.util.commons.clouds.test;

import com.ge.util.commons.clouds.CloudsException;
import com.ge.util.commons.clouds.Server;

public class Server01 {

	public static void main(String[] args) throws CloudsException {
		int nPort = 9000;
		
		Server mServer = new Server(nPort);
		mServer.addCodec(new StringCodec());
		
		mServer.addHandle(new BaseHandle(String.valueOf(nPort)));
		//mServer.addHandle(new BaseHandle(String.valueOf(nPort)));
		//mServer.addHandle(new BaseHandle(String.valueOf(nPort)));
		
		mServer.start();
		
		System.out.println(nPort);
	}
}
